package com.phyane.home.action;

import java.awt.Image;
import java.util.ArrayList;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.phyane.home.data.HomePartData;

public class HomeAction extends ActionSupport{

	private static final long serialVersionUID = 3793609615610318621L;
	private List<HomePartData> list = new ArrayList<HomePartData>();
	private Image image;
	
	public String execute() throws Exception{
		System.out.println("We are in HomeAction");
//		HomeService serive = new HomeService();
//		list = serive.getHomePart();
//		System.out.println(list.size());
		return SUCCESS;
	}

	public List<HomePartData> getList() {
		return list;
	}

	public void setList(List<HomePartData> list) {
		this.list = list;
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image image) {
		this.image = image;
	}
	
}
